/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package FrameWork;
import javax.microedition.lcdui.Graphics;
/**
 *
 * @author ThanhTri
 */
public class IState {
    protected IPlay m_Play;
    protected int m_IDState;
    protected Graphics m_Graphics;
    public IState (IPlay _Play){
        m_Play = _Play;
        m_Graphics = _Play.getGraphics();
    }
    public int getID (){
        return m_IDState;
    }
    public IPlay getPlay (){
        return m_Play;
    }
    public Graphics getGraphics (){
        return m_Graphics;
    }
    public void setGraphics (Graphics _Graphics){
        m_Graphics = _Graphics;
    }
    
     public void MyKey (int _Keycode){
        
    }
    public void KeyPressed(int _Keycode){
        
    }
    public void KeyRepeated(int _KeyCode){
        
    }
    public void KeyReleased(int _KeyCode){
        
    }
    public void PointerPressed(int x, int y){
        
    }
    public void Init (){
        
    }
    public void Update (float _Time){
        
    }
    public void Render (){
        
    }
    public void Destroy (){
        
    }
    public void RenderLandScape (){
        m_Graphics.setColor(0, 0, 0);
        m_Graphics.fillRect(0, 0, 320, 240);
//        RSFont.getRS().getFont(Global.FONT_BIG).DrawString("Landscape view is not supported!",0,100,m_Graphics);
//        RSFont.getRS().getFont(Global.FONT_BIG).DrawString("Please switch back to Portrait !",0,130,m_Graphics);
    }
    
}